#include <bits/stdc++.h>

using namespace std;

typedef long long ll;

const int N = 1;
const int M = 1e9+7;

string s;

bool check() {
    map<char, int> m;
    for (auto ch:s) m[ch]++;
    if (m.size() == 1) return true;

    for (int i = 1;i < 4;i ++) {
        int a = s[i-1] - '0';
        int b = s[i] - '0';

        if (b != (a+1)%10) return false;
    }
    return true;
}

int main()
{
#ifdef LOCAL
    freopen("in.txt", "r", stdin);
    freopen("out.txt", "w", stdout);
#endif
    ios::sync_with_stdio(false), cin.tie(0);
    cin >> s;

    puts(check() ? "Weak" : "Strong");
    return 0;
}